package com.magina.project.mp.demo.sysuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.magina.project.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Magina.Hu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("username")
    private String username;

    @TableField("user_password")
    private String userPassword;

    @TableField("nick_name")
    private String nickName;

    @TableField("email")
    private String email;

    @TableField("mobile")
    private String mobile;

    @TableField("phone")
    private String phone;

    @TableField("sex")
    private String sex;

    @TableField("avatar")
    private String avatar;

    @TableField("sign")
    private String sign;

    /**
     * 状态（0正常 1删除 2停用 3冻结）
     */
    @TableField("status")
    private String status;

    /**
     * 扩展 String 1
     */
    @TableField("extend_s1")
    private String extendS1;

    /**
     * 扩展 String 2
     */
    @TableField("extend_s2")
    private String extendS2;

    /**
     * 扩展 String 3
     */
    @TableField("extend_s3")
    private String extendS3;

    @TableField("version")
    private Integer version;

    /**
     * 个人偏好
     */
    @TableField("preference")
    private String preference;


}
